package cn.supermaster.management.web.controller.system;

import cn.supermaster.management.common.controller.BaseController;
import cn.supermaster.management.web.service.system.ISProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.web.controller.system
 * @ClassName: SystemProfileController
 * @Description: [个人信息 业务处理]
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/1/11 3:45
 * @Version: V1.0
 * @Copyright: 2021 www.super-bytecode.comn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Controller
@RequestMapping("/system/user/profile")
public class SystemProfileController extends BaseController {

    @Autowired
    private ISProfileService profileService;

    /**
     * 个人信息
     */
    @GetMapping()
    public String skipProfileHtml(ModelMap modelMap) {
        return profileService.skipProfileHtml(modelMap);
    }

    @GetMapping("/resetPwd")
    public String resetPwd(ModelMap modelMap) {
        return profileService.skipPesetPassword(modelMap);
    }

    /**
     * 修改头像
     */
    @GetMapping("/avatar")
    public String skipUserAvatarHtml(ModelMap modelMap) {
        return profileService.skipUserAvatarHtml(modelMap);
    }

    /**
     * 修改用户
     */
    @GetMapping("/edit")
    public String edit(ModelMap modelMap) {
        return profileService.skipUserModifyHtml(modelMap);
    }
}
